<extend name="../layout" />

<block name="main_content">
    <include file="Common:SettingsHeader:member" />
    <div class="row-fluid">
<!--        <div class="span3">
            <div class="widget-box">
                <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
                    <h5></h5>
                </div>
                <div class="widget-content nopadding">
                    
                </div>
            </div>
        </div>-->
        <div class="row-fluid">
            <form class="form-horizontal" method="POST" action="">
                <div class=" row-fluid">
                    <div class="span3">
                        <div class="widget-box ">
                            <div class="widget-title">
                                <span class="icon"><i class="icon-th"></i></span>
                                <h5>{:L("group_auth_rule")}</h5>
                            </div>
                            <div class="widget-content">
                                <label>
                                    <input type="checkbox" name="flag" value="1" <if condition="$flag">checked</if> />
                                    {:L("have_no_permission")}
                                </label>
                                <input type="submit" value="{:L('submit')}" class="btn btn-success" />
                            </div>
                        </div>
                    </div>
                    <foreach name='theRules' item='tr' key="k">
                        <div class="span3">
                            <div class="widget-box" id="cheboxParent_{$k}">
                                <div class="widget-title">
                                    <span class="icon"><i class="icon-th"></i></span>
                                    <h5>{:L("group_auth_rule_".$k)}</h5>
                                </div>
                                <div class="widget-content">
                                    <label>
                                        <input type="checkbox" onclick="CheckAll('#cheboxParent_{$k}')" />
                                        {:L("check_all")}
                                    </label>
                                    <volist name="tr" id="t">
                                        <label>
                                            <input type="checkbox" name="rule_id[]" value="{$t.id}"<if condition="in_array($t[id],$selectedRules)">checked</if> />
                                            {$t.title}
                                        </label>
                                    </volist>
                                </div>
                            </div>
                        </div>
                    </foreach>
                </div>
            </form>
        </div>
</block>